package com.parktech.sun.utils;

/**
 * User: Think
 * Date: 11-1-24
 * Time: 上午2:41
 */
public class StringUtil {

    private static String chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";

    public static String random(int len) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < len; i ++) {
            sb.append(chars.charAt((int)Math.round(Math.random() * 35)));
        }
        return sb.toString();
    }
}
